package ooad.gof.singleton;
public class DoubleLockSingleton {
	private static DoubleLockSingleton instance = null;
	private DoubleLockSingleton(){}
	public static DoubleLockSingleton getInstance(){
		if (null == instance){
			synchronized(DoubleLockSingleton.class){
				if(null == instance){
				instance =  new DoubleLockSingleton();
				}
			}

		}
		return instance;
	}
}
